package com.carleasoft.mps.adu.business.role.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carleasoft.mps.adu.business.role.bean.entity.AuthorityRolePermissionEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>Description: role dao</p>
 * @since 2020-05-07
 * @author ztm
 */
@Repository
public interface AuthorityRolePermissionDao extends BaseMapper<AuthorityRolePermissionEntity> {



    /**
     * 新增角色菜单关系
     * @param authorityRolePermissionEntities
     * @return int
     */
    int batchAddRolePermission(@Param("authorityRolePermissionEntities") List<AuthorityRolePermissionEntity> authorityRolePermissionEntities);

    /**
     * 删除菜单角色关系
     * @param roleCode
     * @return int
     */
    int deleteRolePermission(@Param("roleCode") String roleCode);

}
